﻿using System;

namespace CSharpHomework2_3
{
    class Program
    {
        static void Main(string[] args)
        {
            bool[] a = new bool[101];
            for (int i = 0; i <= 100; i++)
            {
                a[i] = true;
            }
            for (int i = 2; i <= 100; i++)
            {
                if (a[i] == true)
                {
                    for (int j = i * i; j <= i; j += i)
                    {
                        a[j] = false;
                    }
                }
            }
            for (int i = 2; i <= 100; i++)
            {
                if (a[i])
                {
                    Console.WriteLine("%d\n", i);
                }
            }
        }
    }
}
